ISecretShopUpgradable
ISecretShopUpgradable
EvProfit
event EvProfit(bytes32 itemHash, address currency, address to, uint256 amount)
event to record how much seller earns
EvInventory
event EvInventory(bytes32 itemHash, address maker, address taker, uint256 orderSalt, uint256 settleSalt, uint256 intent, uint256 delegateType, uint256 deadline, contract IERC20Upgradeable currency, struct Market.OrderItem item, struct Market.SettleDetail detail)
event to record a item order matched
EvDelegate
event EvDelegate(address delegate, bool isRemoval)
event to record delegator contract change
EvCurrency
event EvCurrency(contract IERC20Upgradeable currency, bool isRemoval)
event to record currency supported change
EvFeeCapUpdate
event EvFeeCapUpdate(uint256 newValue)
event to record fee update
EvCancel
event EvCancel(bytes32 itemHash)
event to record a order canceled
EvFailure
event EvFailure(uint256 index, bytes error)
event to record a order failing
DeadlineReached
error DeadlineReached()
signature deadline reached
SenderNotMatch
error SenderNotMatch()
msg.sender is not the address in data
SignatureNotMatch
error SignatureNotMatch()
signature not match to msg.sender;
SignatureVersionNotMatch
error SignatureVersionNotMatch()
signature version not match
ItemHashNotMatch
error ItemHashNotMatch()
itemHash not match to data hashed
ItemNotListed
error ItemNotListed(bytes32 itemHash)
item cannot be traded because sold or cancelled;
IntentNotMath
error IntentNotMath()
intent not match
ItemPriceNotMath
error ItemPriceNotMath()
price not match, such as price given is lower than price offered now
NetworkNotMatch
error NetworkNotMatch()
chain Id not match
NotWhiteCurrency
error NotWhiteCurrency()
wrong currency, the erc20 currency is not allowed
InvalidDelegate
error InvalidDelegate()
invalid delegate parameter
ExecuteDelegateFail
error ExecuteDelegateFail()
delegate execute fail
FeeCapExceed
error FeeCapExceed()
fee cap exceed
ReFundTokenFail
error ReFundTokenFail()
refund extra token fail
UnSafeCall
error UnSafeCall()
restrict the caller must be address(this)
runSingle
function runSingle(struct Market.Order, struct Market.SettleShared, struct Market.SettleDetail) external returns (uint256)
updateFeeCap
function updateFeeCap(uint256) external
updateDelegates
function updateDelegates(address[], address[]) external
updateCurrencies
function updateCurrencies(contract IERC20Upgradeable[], contract IERC20Upgradeable[]) external
verifyOrderSignature
function verifyOrderSignature(struct Market.Order order) external view returns (bool)
verify whether the order data is real, necessary for security
Name | Type | Description |
---|---|---|
order | struct Market.Order | order by the maker |
run
function run(struct Market.RunInput input) external payable