InterceptorManager
It allows adding/removing interceptor for trading on the Bend exchange.
Methods
addCollectionInterceptor
Add a interceptor in the system
Parameters
interceptor
address
address of the interceptor to add
removeCollectionInterceptor
Remove a interceptor from the system
Parameters
interceptor
address
address of the interceptor to remove
renounceOwnership
Leaves the contract without owner. It will not be possible to call onlyOwner
functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner.
transferOwnership
Transfers ownership of the contract to a new account (newOwner
). Can only be called by the current owner.
Parameters
newOwner
address
address of the new owner
View methods
isInterceptorWhitelisted
Returns if a interceptor is in the system
Parameters
interceptor
address
address of the interceptor
Returns
-
bool
whether interceptor is whitelisted
owner
Returns the address of the current owner.
Returns
owner
address
address of the current owner
viewCountWhitelistedCurrencies
View number of whitelisted currencies
Returns
-
uint256
number of currencies valid on the exchange
viewWhitelistedInterceptors
See whitelisted interceptors in the system
Parameters
cursor
uint256
cursor (should start at 0 for first request)
size
uint256
size of the response (e.g., 50)
Returns
-
address[]
array of currency addresses
cursor
uint256
cursor position
Events
CollectionInterceptorRemoved
Parameters
interceptor indexed
address
address of the interceptor
CollectionInterceptorWhitelisted
Parameters
interceptor indexed
address
address of the interceptor
OwnershipTransferred
Parameters
previousOwner indexed
address
address of the previous owner
newOwner indexed
address
address of the new owner
Last updated