ReveelMain
Path
contracts/core/ReveelMain.sol
Contract Interface
Events
OwnershipTransferred (address,address)
Parameters
address previousOwner
address newOwner
Paused (address)
Parameters
address account
RevenuePathCreated (address)
Emits when a new revenue path is created
Parameters
address path: The address of the new revenue path
Unpaused (address)
what's the intended use of `unpaused` event & what is the address parameter representing?
Parameters
address account
UpdatedLibraryAddress (address)
Updates the libaray contract address
Parameters
address newLibrary: The address of the library contract
UpdatedPlatformFee (uint88)
Updates the platform fee percentage
Parameters
uint88 newFeePercentage: The new fee percentage
UpdatedPlatformWallet (address)
Updates the platform fee collecting wallet
Parameters
address newWallet: The new fee collecting wallet
Methods
createRevenuePath nonpayable (address[][],uint256[][],uint256[],string,bool)
Create a new revenue path
explain the required structure of the parameters below so that an external user could call it properly
Parameters
address[][] _walletList: A nested array of member wallet list
uint256[][] _distribution: A nested array of distribution percentages
uint256[] tierLimit: A sequential list of tier limit
string _name
bool isImmutable: Set this flag to true if immutable
getLibraryAddress view ()
Gets the libaray contract address
Return Values
address _0
getPaths view ()
Get the list of revenue paths deployed and count
Return Values
address[] _0
uint256 totalPaths
getPlatformFee view ()
Gets the platform fee percentage
Return Values
uint256 _0
getPlatformWallet view ()
Gets the platform fee percentage
Return Values
address _0
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 ()
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.
setLibraryAddress nonpayable (address)
Sets the libaray contract address
Parameters
address _libraryAddress: The address of the library contract
setPlatformFee nonpayable (uint88)
Set the platform fee percentage
Parameters
uint88 newFeePercentage: The new fee percentage
setPlatformWallet nonpayable (address)
Set the platform fee collecting wallet
Parameters
address newWallet: The new fee collecting wallet
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