Erc20Escrow
EVENTS
ClaimedRoyalties(owner, tokens, amounts)
AddedTokenSupports(token)
Event emitted when the claimRoyalties
function is called.
Event emitted when the addSupportedTokens
function is called.
FUNCTIONS
escrowedTokensByOrder(_orderId)
claimableTokensByOwner(_owner)
isTokenSupported(_token)
addSupportedTokens(_token)
deposit(_token, _orderId, _sender, _amount)
withdraw(_orderId, _receiver, _amount)
transferRoyalty(_token, _sender, _owner, _amount)
transferRoyalty(_orderId, _to, _amount)
transferPlatformFee(_token, _sender, _feesEscrow, _amount)
transferPlatformFee(_orderId, _feesEscrow, _amount)
claimRoyalties(_owner)
Returns the amount of tokens currently escrowed for the given _orderId
.
visibility: external
state mutability: view
Returns the token contract addresses and corresponding amounts available to claim by _owner
.
visibility: external
state mutability: view
Returns true or false based on whether token type _token
is supported by Rawrshak.
visibility: external
state mutability: view
Adds _token
to the list of supported ERC20 tokens on Rawrshak.
Emits an AddedTokenSupport
event.
visibility: external
state mutability:
Transfers _amount
of token type _token
from _sender
to escrow.
visibility: external
state mutability:
Withdraws amount
of tokens from escrow to receiver
.
Requirement:
The amount of tokens escrowed must be greater than or equal to
_amount
.
visibility: external
state mutability:
Transfers creator royalties from _sender
to escrow.
visibility: external
state mutability:
Transfers creator royalties deducted from escrowed buy orders to escrow.
Requirement:
The amount of tokens escrowed must be greater than or equal to
_amount
.
visibility: external
state mutability:
Transfers platform fees from _sender
to _feesEscrow
.
visibility: external
state mutability:
Transfers platform fees deducted from escrowed buy orders to _feesEscrow
.
visibility: external
state mutability:
Withdraws any claimable tokens to _owner, and updates the records to reflect that there are no more tokens remaining to claim.
Emits a ClaimedRoyalties
event.
visibility: external
state mutability:
Last updated