TWFee
Methods
DEFAULT_ADMIN_ROLE
Returns
_0
bytes32
undefined
MAX_FEE_BPS
The maximum threshold for fees. 1%
Returns
_0
uint256
undefined
factory
The factory for deploying contracts.
Returns
_0
contract TWFactory
undefined
feeInfo
Mapping from pricing tier id => Fee Type (lib/FeeType.sol) => FeeInfo
Parameters
_0
uint256
undefined
_1
uint256
undefined
Returns
bps
uint256
undefined
recipient
address
undefined
getFeeInfo
Returns the fee info for a given module and fee type.
Parameters
_proxy
address
undefined
_feeType
uint256
undefined
Returns
recipient
address
undefined
bps
uint256
undefined
getFeeTier
Returns the fee tier for a proxy deployer wallet or contract address.
Parameters
_deployer
address
undefined
_proxy
address
undefined
Returns
tierId
uint128
undefined
validUntilTimestamp
uint128
undefined
getRoleAdmin
Returns the admin role that controls role
. See {grantRole} and {revokeRole}. To change a role's admin, use {_setRoleAdmin}.
Parameters
role
bytes32
undefined
Returns
_0
bytes32
undefined
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.
Parameters
role
bytes32
undefined
index
uint256
undefined
Returns
_0
address
undefined
getRoleMemberCount
Returns the number of accounts that have role
. Can be used together with {getRoleMember} to enumerate all bearers of a role.
Parameters
role
bytes32
undefined
Returns
_0
uint256
undefined
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.
Parameters
role
bytes32
undefined
account
address
undefined
hasRole
Returns true
if account
has been granted role
.
Parameters
role
bytes32
undefined
account
address
undefined
Returns
_0
bool
undefined
isTrustedForwarder
Parameters
forwarder
address
undefined
Returns
_0
bool
undefined
multicall
Receives and executes a batch of function calls on this contract.
Parameters
data
bytes[]
undefined
Returns
results
bytes[]
undefined
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.
Parameters
role
bytes32
undefined
account
address
undefined
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.
Parameters
role
bytes32
undefined
account
address
undefined
setFeeInfoForTier
Lets the admin set fee bps and recipient for the given pricing tier and fee type.
Parameters
_tierId
uint256
undefined
_feeBps
uint256
undefined
_feeRecipient
address
undefined
_feeType
uint256
undefined
setFeeTierPlacementExtension
Parameters
_extension
address
undefined
setTier
Lets a TIER_CONTROLLER_ROLE holder assign a tier to a proxy deployer.
Parameters
_proxyOrDeployer
address
undefined
_tierId
uint128
undefined
_validUntilTimestamp
uint128
undefined
supportsInterface
See {IERC165-supportsInterface}.
Parameters
interfaceId
bytes4
undefined
Returns
_0
bool
undefined
tierPlacementExtension
If we want to extend the logic for fee tier placement, we could easily points it to a different extension implementation.
Returns
_0
contract IFeeTierPlacementExtension
undefined
Events
FeeTierUpdated
Parameters
tierId indexed
uint256
undefined
feeType indexed
uint256
undefined
recipient
address
undefined
bps
uint256
undefined
RoleAdminChanged
Parameters
role indexed
bytes32
undefined
previousAdminRole indexed
bytes32
undefined
newAdminRole indexed
bytes32
undefined
RoleGranted
Parameters
role indexed
bytes32
undefined
account indexed
address
undefined
sender indexed
address
undefined
RoleRevoked
Parameters
role indexed
bytes32
undefined
account indexed
address
undefined
sender indexed
address
undefined
TierUpdated
Events
Parameters
proxyOrDeployer indexed
address
undefined
tierId
uint256
undefined
validUntilTimestamp
uint256
undefined
Last updated