ReveelMainV2
Path
contracts/core/ReveelMainV2.sol
Contract Interface
constructor nonpayable (address,uint32,address,address)
Parameters
address _libraryAddress
uint32 _platformFee
address _platformWallet
address _forwarder
Events
OwnershipTransferred (address,address)
Parameters
address previousOwner
address newOwner
Paused (address)
Parameters
address account
RevenuePathCreated (address,string)
Emits when a new revenue path is created
Parameters
address path: The address of the new revenue path
string name: The name of the revenue path
Unpaused (address)
Parameters
address account
UpdatedLibraryAddress (address)
Updates the libaray contract address
Parameters
address newLibrary: The address of the library contract
UpdatedPlatformFee (uint32)
Updates the platform fee percentage
Parameters
uint32 newFeePercentage: The new fee percentage
UpdatedPlatformWallet (address)
Updates the platform fee collecting wallet
Parameters
address newWallet: The new fee collecting wallet
Methods
BASE view ()
Return Values
uint32 _0
createRevenuePath nonpayable (address[][],uint256[][],address[],uint256[][],string,bool)
Creating new revenue path
Parameters
address[][] _walletList
uint256[][] _distribution
address[] _tokenList
uint256[][] _limitSequence
string _name
bool isImmutable
getLibraryAddress view ()
Gets the libaray contract address
Return Values
address _0
getPlatformFee view ()
Gets the platform fee percentage
Return Values
uint32 _0
getPlatformWallet view ()
Gets the platform fee percentage
Return Values
address _0
getTrustedForwarder view ()
:warning: **Warning** :warning: The Forwarder can have a full control over your Recipient. Only trust verified Forwarder.Method is not a required method to allow Recipients to trust multiple Forwarders. Not recommended yet.
Return Values
address forwarder: The address of the Forwarder contract that is being used.
isTrustedForwarder view (address)
:warning: **Warning** :warning: The Forwarder can have a full control over your Recipient. Only trust verified Forwarder.
Parameters
address forwarder: The address of the Forwarder contract that is being used.
Return Values
bool _0: isTrustedForwarder `true` if the Forwarder is trusted to forward relayed transactions by this Recipient.
owner view ()
Returns the address of the current owner.
Return Values
address _0
paused view ()
Returns true if the contract is paused, and false otherwise.
Return Values
bool _0
renounceOwnership nonpayable ()
Owner can not renounce ownership of this contract
setLibraryAddress nonpayable (address)
Sets the libaray contract address
Parameters
address _libraryAddress: The address of the library contract
setPlatformFee nonpayable (uint32)
Set the platform fee percentage
Parameters
uint32 newFeePercentage: The new fee percentage
setPlatformWallet nonpayable (address)
Set the platform fee collecting wallet
Parameters
address newWallet: The new fee collecting wallet
setTrustedForwarder nonpayable (address)
Parameters
address forwarder
toggleContractState nonpayable ()
Owner can toggle & pause contract
emits relevant Pausable events
transferOwnership nonpayable (address)
Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner.
Parameters
address newOwner
Last updated