Expand description
Generated by the following Solidity interface…
library Common {
struct CIDV1 {
bytes4 prefixes;
bytes32 hash;
}
}
library IConfig {
type AccessType is uint8;
}
interface Config {
error InvalidInitialization();
error NotInitializing();
error OwnableInvalidOwner(address owner);
error OwnableUnauthorizedAccount(address account);
event AppCIDChanged(Common.CIDV1 newAppCID);
event Initialized(uint64 version);
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
event ProviderAddedToAccessList(address provider);
event ProviderRemovedFromAccessList(address provider);
event ProvidersAccessTypeChanged(IConfig.AccessType newAccessType);
function addProviderToAccessList(address provider) external;
function appCID() external view returns (Common.CIDV1 memory);
function changeProvidersAccessType(IConfig.AccessType accessType) external;
function creationBlock() external view returns (uint256);
function cuCountPerWorker() external view returns (uint256);
function effectors() external view returns (Common.CIDV1[] memory);
function isProviderAllowed(address account) external view returns (bool);
function maxWorkersPerProvider() external view returns (uint256);
function minWorkers() external view returns (uint256);
function owner() external view returns (address);
function paymentToken() external view returns (address);
function pricePerCuPerEpoch() external view returns (uint256);
function providersAccessType() external view returns (IConfig.AccessType);
function removeProviderFromAccessList(address provider) external;
function renounceOwnership() external;
function setAppCID(Common.CIDV1 memory appCID_) external;
function targetWorkers() external view returns (uint256);
function transferOwnership(address newOwner) external;
}
…which was generated by the following JSON ABI:
[
{
"type": "function",
"name": "addProviderToAccessList",
"inputs": [
{
"name": "provider",
"type": "address",
"internalType": "address"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "appCID",
"inputs": [],
"outputs": [
{
"name": "",
"type": "tuple",
"internalType": "struct Common.CIDV1",
"components": [
{
"name": "prefixes",
"type": "bytes4",
"internalType": "bytes4"
},
{
"name": "hash",
"type": "bytes32",
"internalType": "bytes32"
}
]
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "changeProvidersAccessType",
"inputs": [
{
"name": "accessType",
"type": "uint8",
"internalType": "enum IConfig.AccessType"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "creationBlock",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "cuCountPerWorker",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "effectors",
"inputs": [],
"outputs": [
{
"name": "",
"type": "tuple[]",
"internalType": "struct Common.CIDV1[]",
"components": [
{
"name": "prefixes",
"type": "bytes4",
"internalType": "bytes4"
},
{
"name": "hash",
"type": "bytes32",
"internalType": "bytes32"
}
]
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "isProviderAllowed",
"inputs": [
{
"name": "account",
"type": "address",
"internalType": "address"
}
],
"outputs": [
{
"name": "",
"type": "bool",
"internalType": "bool"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "maxWorkersPerProvider",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "minWorkers",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "owner",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "paymentToken",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "contract IERC20"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "pricePerCuPerEpoch",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "providersAccessType",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint8",
"internalType": "enum IConfig.AccessType"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "removeProviderFromAccessList",
"inputs": [
{
"name": "provider",
"type": "address",
"internalType": "address"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "renounceOwnership",
"inputs": [],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "setAppCID",
"inputs": [
{
"name": "appCID_",
"type": "tuple",
"internalType": "struct Common.CIDV1",
"components": [
{
"name": "prefixes",
"type": "bytes4",
"internalType": "bytes4"
},
{
"name": "hash",
"type": "bytes32",
"internalType": "bytes32"
}
]
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "targetWorkers",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "transferOwnership",
"inputs": [
{
"name": "newOwner",
"type": "address",
"internalType": "address"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "event",
"name": "AppCIDChanged",
"inputs": [
{
"name": "newAppCID",
"type": "tuple",
"indexed": false,
"internalType": "struct Common.CIDV1",
"components": [
{
"name": "prefixes",
"type": "bytes4",
"internalType": "bytes4"
},
{
"name": "hash",
"type": "bytes32",
"internalType": "bytes32"
}
]
}
],
"anonymous": false
},
{
"type": "event",
"name": "Initialized",
"inputs": [
{
"name": "version",
"type": "uint64",
"indexed": false,
"internalType": "uint64"
}
],
"anonymous": false
},
{
"type": "event",
"name": "OwnershipTransferred",
"inputs": [
{
"name": "previousOwner",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "newOwner",
"type": "address",
"indexed": true,
"internalType": "address"
}
],
"anonymous": false
},
{
"type": "event",
"name": "ProviderAddedToAccessList",
"inputs": [
{
"name": "provider",
"type": "address",
"indexed": false,
"internalType": "address"
}
],
"anonymous": false
},
{
"type": "event",
"name": "ProviderRemovedFromAccessList",
"inputs": [
{
"name": "provider",
"type": "address",
"indexed": false,
"internalType": "address"
}
],
"anonymous": false
},
{
"type": "event",
"name": "ProvidersAccessTypeChanged",
"inputs": [
{
"name": "newAccessType",
"type": "uint8",
"indexed": false,
"internalType": "enum IConfig.AccessType"
}
],
"anonymous": false
},
{
"type": "error",
"name": "InvalidInitialization",
"inputs": []
},
{
"type": "error",
"name": "NotInitializing",
"inputs": []
},
{
"type": "error",
"name": "OwnableInvalidOwner",
"inputs": [
{
"name": "owner",
"type": "address",
"internalType": "address"
}
]
},
{
"type": "error",
"name": "OwnableUnauthorizedAccount",
"inputs": [
{
"name": "account",
"type": "address",
"internalType": "address"
}
]
}
]
Structs§
- AppCID
Changed - Event with signature
AppCIDChanged((bytes4,bytes32))
and selector0xc820a66d3bdd50a45cf12cda6dc8ec9e94fb5123edd7da736eea18316f8523a0
. - Config
Instance - A
Config
instance. - Initialized
- Event with signature
Initialized(uint64)
and selector0xc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2
. - Invalid
Initialization - Custom error with signature
InvalidInitialization()
and selector0xf92ee8a9
. - NotInitializing
- Custom error with signature
NotInitializing()
and selector0xd7e6bcf8
. - Ownable
Invalid Owner - Custom error with signature
OwnableInvalidOwner(address)
and selector0x1e4fbdf7
. - Ownable
Unauthorized Account - Custom error with signature
OwnableUnauthorizedAccount(address)
and selector0x118cdaa7
. - Ownership
Transferred - Event with signature
OwnershipTransferred(address,address)
and selector0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0
. - Provider
Added ToAccess List - Event with signature
ProviderAddedToAccessList(address)
and selector0x4c26e4de691e265be6cf03e639754839907bf74687cd524a6734851331527ffd
. - Provider
Removed From Access List - Event with signature
ProviderRemovedFromAccessList(address)
and selector0x38fb081a0b484406977bd94ff8edb79be44b5ca514130361182516b39e2c4528
. - Providers
Access Type Changed - Event with signature
ProvidersAccessTypeChanged(uint8)
and selector0x1f5a251428f76335a835fcae94ab6a9bcf09ac33bd3c782eb6a81bdf878a7393
. - addProvider
ToAccess List Call - Function with signature
addProviderToAccessList(address)
and selector0x73134c15
. - addProvider
ToAccess List Return - Container type for the return parameters of the
addProviderToAccessList(address)
function. - appCID
Call - Function with signature
appCID()
and selector0x9bc66868
. - appCID
Return - Container type for the return parameters of the
appCID()
function. - change
Providers Access Type Call - Function with signature
changeProvidersAccessType(uint8)
and selector0x636fcefb
. - change
Providers Access Type Return - Container type for the return parameters of the
changeProvidersAccessType(uint8)
function. - creation
Block Call - Function with signature
creationBlock()
and selector0x17634514
. - creation
Block Return - Container type for the return parameters of the
creationBlock()
function. - cuCount
PerWorker Call - Function with signature
cuCountPerWorker()
and selector0x15a0f31a
. - cuCount
PerWorker Return - Container type for the return parameters of the
cuCountPerWorker()
function. - effectors
Call - Function with signature
effectors()
and selector0xfc1e5e2a
. - effectors
Return - Container type for the return parameters of the
effectors()
function. - isProvider
Allowed Call - Function with signature
isProviderAllowed(address)
and selector0x3e8ae1ae
. - isProvider
Allowed Return - Container type for the return parameters of the
isProviderAllowed(address)
function. - maxWorkers
PerProvider Call - Function with signature
maxWorkersPerProvider()
and selector0x8a0c725b
. - maxWorkers
PerProvider Return - Container type for the return parameters of the
maxWorkersPerProvider()
function. - minWorkers
Call - Function with signature
minWorkers()
and selector0x2db31193
. - minWorkers
Return - Container type for the return parameters of the
minWorkers()
function. - owner
Call - Function with signature
owner()
and selector0x8da5cb5b
. - owner
Return - Container type for the return parameters of the
owner()
function. - payment
Token Call - Function with signature
paymentToken()
and selector0x3013ce29
. - payment
Token Return - Container type for the return parameters of the
paymentToken()
function. - price
PerCu PerEpoch Call - Function with signature
pricePerCuPerEpoch()
and selector0x70220a9b
. - price
PerCu PerEpoch Return - Container type for the return parameters of the
pricePerCuPerEpoch()
function. - providers
Access Type Call - Function with signature
providersAccessType()
and selector0xd4773ff0
. - providers
Access Type Return - Container type for the return parameters of the
providersAccessType()
function. - remove
Provider From Access List Call - Function with signature
removeProviderFromAccessList(address)
and selector0x444e6a5a
. - remove
Provider From Access List Return - Container type for the return parameters of the
removeProviderFromAccessList(address)
function. - renounce
Ownership Call - Function with signature
renounceOwnership()
and selector0x715018a6
. - renounce
Ownership Return - Container type for the return parameters of the
renounceOwnership()
function. - setAppCID
Call - Function with signature
setAppCID((bytes4,bytes32))
and selector0x176474cf
. - setAppCID
Return - Container type for the return parameters of the
setAppCID((bytes4,bytes32))
function. - target
Workers Call - Function with signature
targetWorkers()
and selector0x2943dcab
. - target
Workers Return - Container type for the return parameters of the
targetWorkers()
function. - transfer
Ownership Call - Function with signature
transferOwnership(address)
and selector0xf2fde38b
. - transfer
Ownership Return - Container type for the return parameters of the
transferOwnership(address)
function.
Enums§
- Config
Calls - Container for all the
Config
function calls. - Config
Errors - Container for all the
Config
custom errors. - Config
Events - Container for all the
Config
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 givenprovider
and constructor arguments, if any. - new
- Creates a new wrapper around an on-chain
Config
contract instance.