Interfaces
IERP.sol
getReferralProgram
Parameters
Name | Type | Description |
---|---|---|
programId | uint256 | Unique ID of the referral program |
Returns
Name | Type | Description |
---|---|---|
hooks | address[] | Array of referral hooks |
getTotalReferrals
Parameters
Name | Type | Description |
---|---|---|
programId | uint256 | Unique ID of the referral program |
account | address | Address of the referee |
Returns
Name | Type | Description |
---|---|---|
total | uint256 | Referrers total referrals in a program |
getReferral
Parameters
Name | Type | Description |
---|---|---|
programId | uint256 | Unique ID of the referral program |
account | address | Address of the referee |
Returns
Name | Type | Description |
---|---|---|
referral | address | Address of the referrer |
newReferralProgram
Parameters
Name | Type | Description |
---|---|---|
hooks | address[] | Array of referral hooks |
Returns
Name | Type | Description |
---|---|---|
programId | uint256 | Unique ID of the referral program |
setReferral
Parameters
Name | Type | Description |
---|---|---|
programId | uint256 | Unique ID of the referral program |
referral | address | Address of the referrer |