EeseeSplit
EeseeSplit
Recipient
royaltyShare
Share of total sale that goes to royalty. [10000 = 100%].
InvalidRoyaltyShare
initializeWithRoyaltyShare
getRecipients
RoyaltyEngine requires this function to be present for Multi Recipient ERC2981 Royalties.
Inherited from Split
initialize
Performs the job of the constructor. shares are scaled by 10,000 to prevent precision loss when including fees_
contractType
Returns the module type of the contract.
contractVersion
Returns the version of the contract.
release
Triggers a transfer to account
of the amount of Ether they are owed, according to their percentage of the total shares and their previous withdrawals.
release
Triggers a transfer to account
of the amount of token
tokens they are owed, according to their percentage of the total shares and their previous withdrawals. token
must be the address of an IERC20 contract.
distribute
Release the owed amount of token to all of the payees.
distribute
Release owed amount of the token
to all of the payees.
setContractURI
Sets contract URI for the contract-level metadata of the contract.
Inherited from PaymentSplitterUpgradeable
totalShares
Getter for the total shares held by payees.
totalReleased
Getter for the total amount of Ether already released.
totalReleased
Getter for the total amount of token
already released. token
should be the address of an IERC20 contract.
shares
Getter for the amount of shares held by an account.
released
Getter for the amount of Ether already released to a payee.
released
Getter for the amount of token
tokens already released to a payee. token
should be the address of an IERC20 contract.
payee
Getter for the address of the payee number index
.
payeeCount
Get the number of payees
releasable
Getter for the amount of payee's releasable Ether.
releasable
Getter for the amount of payee's releasable token
tokens. token
should be the address of an IERC20 contract.
PayeeAdded
PaymentReleased
ERC20PaymentReleased
PaymentReceived
Inherited from AccessControlEnumerableUpgradeable
supportsInterface
See {IERC165-supportsInterface}.
getRoleMember
_Returns one of the accounts that have role
. index
must be a value between 0 and {getRoleMemberCount}, non-inclusive.
Role bearers are not sorted in any particular way, and their ordering may change at any point.
WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure you perform all queries on the same block. See the following https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post] for more information._
getRoleMemberCount
Returns the number of accounts that have role
. Can be used together with {getRoleMember} to enumerate all bearers of a role.
Inherited from AccessControlUpgradeable
hasRole
Returns true
if account
has been granted role
.
getRoleAdmin
_Returns the admin role that controls role
. See {grantRole} and {revokeRole}.
To change a role's admin, use {setRoleAdmin}.
grantRole
_Grants role
to account
.
If account
had not been already granted role
, emits a {RoleGranted} event.
Requirements:
the caller must have
role
's admin role.
May emit a {RoleGranted} event._
revokeRole
_Revokes role
from account
.
If account
had been granted role
, emits a {RoleRevoked} event.
Requirements:
the caller must have
role
's admin role.
May emit a {RoleRevoked} event._
renounceRole
_Revokes role
from the calling account.
Roles are often managed via {grantRole} and {revokeRole}: this function's purpose is to provide a mechanism for accounts to lose their privileges if they are compromised (such as when a trusted device is misplaced).
If the calling account had been revoked role
, emits a {RoleRevoked} event.
Requirements:
the caller must be
account
.
May emit a {RoleRevoked} event._
Inherited from ERC165Upgradeable
Inherited from IAccessControlUpgradeable
RoleAdminChanged
_Emitted when newAdminRole
is set as role
's admin role, replacing previousAdminRole
DEFAULT_ADMIN_ROLE
is the starting admin for all roles, despite {RoleAdminChanged} not being emitted signaling this.
Available since v3.1._
RoleGranted
_Emitted when account
is granted role
.
sender
is the account that originated the contract call, an admin role bearer except when using {AccessControl-setupRole}.
RoleRevoked
_Emitted when account
is revoked role
.
sender
is the account that originated the contract call:
if using
revokeRole
, it is the admin role bearerif using
renounceRole
, it is the role bearer (i.e.account
)_
Inherited from ERC2771ContextUpgradeable
isTrustedForwarder
Inherited from ContextUpgradeable
Inherited from Multicall
multicall
@notice Receives and executes a batch of function calls on this contract. @dev Receives and executes a batch of function calls on this contract.
@param data The bytes data that makes up the batch of function calls to execute. @return results The bytes data that makes up the result of the batch of function calls executed.
Inherited from Initializable
Initialized
Triggered when the contract has been initialized or reinitialized.
Inherited from IThirdwebContract
contractURI
Returns the metadata URI of the contract.
Last updated