Cred
Verified contract
Implementation
Active on
Base with 0 txns
Storage
Map
Table
Raw
Constants and immutables
10
Slot
XX
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
Balances ($0.00)
No balances found for "Cred"
Transactions
Txn hash | Method | Block | Age | From | To | Value (ETH) | Fee (ETH) |
---|
No transactions found for "Cred"
ABI
ABI objects
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 credId) view returns (bytes32 root)
curatePriceWhitelist(address priceCurve) view 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 buyShareRoyalty, uint16 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[] credIds, uint256[] 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 credId, address curator) view returns (uint256 timestamp)
nonces(address credCreator) view returns (uint256 count)
State-modifying
Events 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 newImplementation, bytes data) payable
AddedToWhitelist(address indexed sender, address indexed whitelistedAddress)
CreatorRoyalty(address indexed creator, uint256 indexed credId, bool isBuy, uint256 amount)
CredCreated(address indexed creator, uint256 credId, string credURL, string credType, string verificationType, uint256 amount)
CredUpdated(address indexed creator, uint256 credId, string credURL)
Initialized(uint64 version)
MerkleTreeSetUp(address sender, uint256 credId, bytes32 root)
OwnershipTransferStarted(address indexed previousOwner, address indexed newOwner)
OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
Paused(address account)
PhiRewardsAddressSet(address phiRewardsAddress)
PhiSignerAddressSet(address phiSignerAddress)
ProtocolFeeDestinationChanged(address changer, address newDestination)
ProtocolFeePercentChanged(address changer, uint256 newFee)
RemovedFromWhitelist(address indexed sender, address indexed unwhitelistedAddress)
Trade(address indexed curator, uint256 indexed credId, bool isBuy, uint256 amount, uint256 ethAmount, uint256 protocolEthAmount, uint256 supply)
Unpaused(address account)
Upgraded(address indexed implementation)
constructor()
This contract contains no fallback and receive objects.
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 currentTimestamp, uint256 unlockTimestamp)
SignatureExpired()
UUPSUnauthorizedCallContext()
UUPSUnsupportedProxiableUUID(bytes32 slot)
UnauthorizedCaller()
UnauthorizedCurve()
WrongCredId()
protocolFeePercentTooHigh()