Partner Integration
Methods for partner authorization and management.isAuthorizedPartner
Checks if an address is an authorized partner.Parameters
| Name | Type | Description |
|---|---|---|
| partnerAddress | Address | Address to check |
Returns
boolean - True if authorized, false otherwise.
Example
getPartnerSubscription
Gets subscription details for a partner.Parameters
| Name | Type | Description |
|---|---|---|
| partnerAddress | Address | Address of the partner |
Returns
PartnerSubscription object containing subscription details.Example
getPlatformFee
Gets the current platform fee percentage.Returns
number - Platform fee percentage in basis points (e.g., 1500 = 15%).
Example
getTreasury
Gets the treasury address.Returns
Address - Treasury address.
Example
recordAction
Records a user action that triggers referral rewards (partner-only method).Parameters
| Name | Type | Description |
|---|---|---|
| userAddress | Address | Address of the user performing the action |
| actionValue | bigint | Value of the action in wei |
Returns
Hex - Transaction hash of the action recording.