Skip to content
ClearClear
Docs
Protocol/CreditsNetworkRegistry

CreditsNetworkRegistry

Source: defined outside contracts/ · Upgradeable (UUPS proxy)

1 min readView source

On this page
Network
Chain id
Address
Base Sepolia
84532

Functions that change state

Function
Who can call
Also
attestStateCode(address member, bytes32 stateCode)
Defined outside contracts/
deregisterIssuer(address issuer)
Defined outside contracts/
enrolMember(address member, address issuer)
Defined outside contracts/
grantRole(bytes32 role, address account)
The role's admin role (DEFAULT_ADMIN_ROLE unless set otherwise)
initialize(address admin)
Defined outside contracts/
listMoneyPath(address account, bytes32 kind)
Defined outside contracts/
registerIssuer(address issuer, address stableCredit)
Defined outside contracts/
renounceRole(bytes32 role, address account)
Only the account renouncing its own role
revokeRole(bytes32 role, address account)
The role's admin role (DEFAULT_ADMIN_ROLE unless set otherwise)
upgradeTo(address newImplementation)
Whoever _authorizeUpgrade allows
upgradeToAndCall(address newImplementation, bytes data)
Whoever _authorizeUpgrade allows
payable
withdrawMember(address member, address issuer)
Defined outside contracts/

Read functions

Anyone can call these; they change nothing.

Function
Returns
DEFAULT_ADMIN_ROLE()
bytes32
enrolledCount(address)
uint256
enrolledCountOf(address issuer)
uint256
getRoleAdmin(bytes32 role)
bytes32
hasRole(bytes32 role, address account)
bool
isEnrolled(address member, address issuer)
bool
isIssuer(address issuer)
bool
isIssuerOf(address issuer, address stableCredit)
bool
isMoneyPath(address account)
bool
issuerCountOf(address member)
uint256
issuersOf(address member)
address[]
moneyPathKindOf(address)
bytes32
networkOf(address issuer)
(address,address,address)
OPERATOR_ROLE()
bytes32
proxiableUUID()
bytes32
STATE_ATTESTER_ROLE()
bytes32
stateCodeOf(address)
bytes32
supportsInterface(bytes4 interfaceId)
bool

Events

Event
AdminChanged(address previousAdmin, address newAdmin)
BeaconUpgraded(address beacon indexed)
Initialized(uint8 version)
IssuerDeregistered(address issuer indexed)
IssuerRegistered(address issuer indexed, address stableCredit indexed)
MemberEnrolled(address member indexed, address issuer indexed)
MemberWithdrawn(address member indexed, address issuer indexed)
MoneyPathListed(address account indexed, bytes32 kind indexed)
RoleAdminChanged(bytes32 role indexed, bytes32 previousAdminRole indexed, bytes32 newAdminRole indexed)
RoleGranted(bytes32 role indexed, address account indexed, address sender indexed)
RoleRevoked(bytes32 role indexed, address account indexed, address sender indexed)
StateCodeAttested(address member indexed, bytes32 stateCode, address attester indexed)
Upgraded(address implementation indexed)

Errors

Error
NetworkRegistryInvalidAddress()
NetworkRegistryInvalidStateCode()
NetworkRegistryIssuerAlreadyRegistered(address issuer)
NetworkRegistryMemberStillEnrolled(address issuer)
NetworkRegistryMoneyPathSet(address account)
NetworkRegistryUnauthorized(address caller)
NetworkRegistryUnknownIssuer(address issuer)