Skip to main content

PartnerRegistry

PartnerRegistry

Methods

basePercentage

function basePercentage() external view returns (uint256)

Returns

NameTypeDescription
_0uint256undefined

companyBeneficiary

function companyBeneficiary() external view returns (address payable)

Returns

NameTypeDescription
_0address payableundefined

deletePartner

function deletePartner(address partnerContract) external nonpayable

Marks a partner contract as no longer valid

Parameters

NameTypeDescription
partnerContractaddressThe partner contract address to disable

isValidPartner

function isValidPartner(address partnerContract) external view returns (bool)

Validate partnerContract

Parameters

NameTypeDescription
partnerContractaddressThe partner contract address to validate

Returns

NameTypeDescription
_0boolundefined

overrideRegisterPartner

function overrideRegisterPartner(address payable _companyBeneficiary, uint256 _companyPercentage, address payable partnerBeneficiary, uint256 partnerPercentage) external nonpayable

registers a partner and deploys a partner contract with custom company values, only usable by owner

Parameters

NameTypeDescription
_companyBeneficiaryaddress payableThe address that the company will receive payments to - NON-CHANGEABLE
_companyPercentageuint256The percentage fee the company wants to take - this is out of 118, so 116 would be 1% fee
partnerBeneficiaryaddress payableThe address that the partner will receive payments to - NON-CHANGEABLE
partnerPercentageuint256The percentage fee the partner wants to take - this is out of 118, so 116 would be 1% fee

owner

function owner() external view returns (address)

Returns the address of the current owner.

Returns

NameTypeDescription
_0addressundefined

paused

function paused() external view returns (bool)

Returns true if the contract is paused, and false otherwise.

Returns

NameTypeDescription
_0boolundefined

previousRegistry

function previousRegistry() external view returns (contract PartnerRegistry)

Returns

NameTypeDescription
_0contract PartnerRegistryundefined

registerPartner

function registerPartner(address payable partnerBeneficiary, uint256 partnerPercentage) external nonpayable

registers a partner and deploys a partner contract

Parameters

NameTypeDescription
partnerBeneficiaryaddress payableThe address that the partner will receive payments to - NON-CHANGEABLE
partnerPercentageuint256The percentage fee the partner wants to take - this is out of 118, so 116 would be 1% fee

renounceOwnership

function renounceOwnership() external 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.

transferOwnership

function transferOwnership(address newOwner) external nonpayable

Transfers ownership of the contract to a new account (newOwner). Can only be called by the current owner.

Parameters

NameTypeDescription
newOwneraddressundefined

updateCompanyInfo

function updateCompanyInfo(address payable newCompanyBeneficiary, uint256 newBasePercentage) external nonpayable

Updates the beneficiary and default percentage for the company

Parameters

NameTypeDescription
newCompanyBeneficiaryaddress payableNew beneficiary address for company
newBasePercentageuint256New base percentage for company

Events

OwnershipTransferred

event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)

Parameters

NameTypeDescription
previousOwner indexedaddressundefined
newOwner indexedaddressundefined

PartnerRegistered

event PartnerRegistered(address indexed creator, address indexed beneficiary, address partnerContract)

Parameters

NameTypeDescription
creator indexedaddressundefined
beneficiary indexedaddressundefined
partnerContractaddressundefined

Paused

event Paused(address account)

Parameters

NameTypeDescription
accountaddressundefined

Unpaused

event Unpaused(address account)

Parameters

NameTypeDescription
accountaddressundefined