Cred

Verified contract

Implementation

Active on Base with 0 txns
Deployed by via 0x055da7d1 at 20990053
Slot
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0

No balances found for "Cred"

No transactions found for "Cred"


Functions
Getter at block 23066742
SHARE_LOCK_PERIOD(view returns (uint256)
43200
UPGRADE_INTERFACE_VERSION(view returns (string)
5.0.0
credIdCounter(view returns (uint256)
0
owner(view returns (address)
0x0000000000000000000000000000000000000000
paused(view returns (bool)
false
pendingOwner(view returns (address)
0x0000000000000000000000000000000000000000
phiRewardsAddress(view returns (address)
0x0000000000000000000000000000000000000000
phiSignerAddress(view returns (address)
0x0000000000000000000000000000000000000000
protocolFeeDestination(view returns (address)
0x0000000000000000000000000000000000000000
protocolFeePercent(view returns (uint256)
0
proxiableUUID(view returns (bytes32)
0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc
version(pure returns (uint256)
1
Read-only
credInfo(uint256 credId_view returns (struct ICredPhiCred)
credsMerkeRoot(uint256 credIdview returns (bytes32 root)
curatePriceWhitelist(address priceCurveview returns (bool enable)
getBatchBuyPrice(uint256[] credIds_uint256[] amounts_view returns (uint256)
getBatchSellPrice(uint256[] credIds_uint256[] amounts_view returns (uint256)
getCreatorRoyalty(uint256 credId_view returns (uint16 buyShareRoyaltyuint16 sellShareRoyalty)
getCredBuyPrice(uint256 credId_uint256 amount_view returns (uint256)
getCredBuyPriceWithFee(uint256 credId_uint256 amount_view returns (uint256)
getCredCreator(uint256 credId_view returns (address)
getCredSellPrice(uint256 credId_uint256 amount_view returns (uint256)
getCredSellPriceWithFee(uint256 credId_uint256 amount_view returns (uint256)
getCuratorAddressLength(uint256 credId_view returns (uint256)
getCuratorAddresses(uint256 credId_uint256 start_uint256 stop_view returns (address[])
getCuratorAddressesWithAmount(uint256 credId_uint256 start_uint256 stop_view returns (struct ICredCuratorData[])
getCurrentSupply(uint256 credId_view returns (uint256)
getPositionsForCurator(address curator_uint256 start_uint256 stop_view returns (uint256[] credIdsuint256[] amounts)
getRoot(uint256 credId_view returns (bytes32)
getShareNumber(uint256 credId_address curator_view returns (uint256)
isExist(uint256 credId_view returns (bool)
isShareHolder(uint256 credId_address curator_view returns (bool)
lastTradeTimestamp(uint256 credIdaddress curatorview returns (uint256 timestamp)
nonces(address credCreatorview returns (uint256 count)
State-modifying
acceptOwnership(
addToWhitelist(address address_
batchBuyShareCred(uint256[] credIds_uint256[] amounts_uint256[] maxPrices_address curator_payable 
batchSellShareCred(uint256[] credIds_uint256[] amounts_uint256[] minPrices_
buyShareCred(uint256 credId_uint256 amount_uint256 maxPrice_payable 
createCred(bytes signedData_bytes signature_uint16 buyShareRoyalty_uint16 sellShareRoyalty_uint256 amount_payable 
initialize(address phiSignerAddress_address ownerAddress_address protocolFeeDestination_uint256 protocolFeePercent_address bondingCurveAddress_address phiRewardsAddress_
pause(
removeFromWhitelist(address address_
renounceOwnership(
sellShareCred(uint256 credId_uint256 amount_uint256 minPrice_
setPhiRewardsAddress(address phiRewardsAddress_
setPhiSignerAddress(address phiSignerAddress_
setProtocolFeeDestination(address protocolFeeDestination_
setProtocolFeePercent(uint256 protocolFeePercent_
transferOwnership(address newOwner
unPause(
updateCred(bytes signedData_bytes signature_
upgradeToAndCall(address newImplementationbytes datapayable 
Events
AddedToWhitelist(address indexed senderaddress indexed whitelistedAddress
CreatorRoyalty(address indexed creatoruint256 indexed credIdbool isBuyuint256 amount
CredCreated(address indexed creatoruint256 credIdstring credURLstring credTypestring verificationTypeuint256 amount
CredUpdated(address indexed creatoruint256 credIdstring credURL
Initialized(uint64 version
MerkleTreeSetUp(address senderuint256 credIdbytes32 root
OwnershipTransferStarted(address indexed previousOwneraddress indexed newOwner
OwnershipTransferred(address indexed previousOwneraddress indexed newOwner
Paused(address account
PhiRewardsAddressSet(address phiRewardsAddress
PhiSignerAddressSet(address phiSignerAddress
ProtocolFeeDestinationChanged(address changeraddress newDestination
ProtocolFeePercentChanged(address changeruint256 newFee
RemovedFromWhitelist(address indexed senderaddress indexed unwhitelistedAddress
Trade(address indexed curatoruint256 indexed credIdbool isBuyuint256 amountuint256 ethAmountuint256 protocolEthAmountuint256 supply
Unpaused(address account
Upgraded(address indexed implementation
Constructor
constructor(
Fallback and receive

This contract contains no fallback and receive objects.

Errors
AddressEmptyCode(address target
AddressNotSigned(
DuplicateCredId(
ERC1967InvalidImplementation(address implementation
ERC1967NonPayable(
EmptyArray(
EmptyBatchOperation(
EnforcedPause(
EnumerableMapNonexistentKey(bytes32 key
ExpectedPause(
FailedInnerCall(
IndexOutofBounds(
InsufficientBatchPayment(
InsufficientPayment(
InsufficientShares(
InvalidAddressZero(
InvalidAmount(
InvalidArrayLength(
InvalidChainId(
InvalidCredId(
InvalidCredType(
InvalidInitialization(
InvalidMerkleRoot(
InvalidNonce(
InvalidPaginationParameters(
InvalidRoyaltyRange(
InvalidVerificationType(
MaxSupplyReached(
NotInitializing(
OwnableInvalidOwner(address owner
OwnableUnauthorizedAccount(address account
PriceBelowLimit(
PriceExceedsLimit(
Reentrancy(
ShareLockPeriodNotPassed(uint256 currentTimestampuint256 unlockTimestamp
SignatureExpired(
UUPSUnauthorizedCallContext(
UUPSUnsupportedProxiableUUID(bytes32 slot
UnauthorizedCaller(
UnauthorizedCurve(
WrongCredId(
protocolFeePercentTooHigh(